package com.ygqh.baby.mapper;

import com.ygqh.baby.excel.domain.OrderDetailSendEntity;
import com.ygqh.baby.model.OrderSendDetailSearchParam;
import com.ygqh.baby.po.YgOrderSendDetail;
import com.ygqh.baby.po.YgOrderSendDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface YgOrderSendDetailMapper {
    int countByExample(YgOrderSendDetailExample example);

    int deleteByExample(YgOrderSendDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgOrderSendDetail record);

    int insertSelective(YgOrderSendDetail record);

    List<YgOrderSendDetail> selectByExample(YgOrderSendDetailExample example);

    YgOrderSendDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgOrderSendDetail record, @Param("example") YgOrderSendDetailExample example);

    int updateByExample(@Param("record") YgOrderSendDetail record, @Param("example") YgOrderSendDetailExample example);

    int updateByPrimaryKeySelective(YgOrderSendDetail record);

    int updateByPrimaryKey(YgOrderSendDetail record);

    int countSuper(OrderSendDetailSearchParam sendDetailSearchParam);

    List<YgOrderSendDetail> selectSuper(OrderSendDetailSearchParam sendDetailSearchParam);

    int addBatch(@Param("detailList") List<YgOrderSendDetail> detailList);

    int sendOrderDetailBatch(@Param("sendList") List<OrderDetailSendEntity> sendList, @Param("handler") String handler, @Param("updateTime") Date updateTime);
}



